﻿{include file='templates/admin/include_header.php'}
<h1>
    <a href="{base_admin_url()}"><i class="icon-arrow-left-3 fg-darker smaller"></i></a>
    Quản Lý<small class="on-right">Truyện Vova</small>
</h1>
<div class="grid">
    <div class="row">
        {include file='admin/vova/menu.php' }

        <div class="span9">
            <h2 id="_default"><i class="icon-accessibility on-left"></i>{$act_title}</h2>
            <div class="window shadow">
                <div class="caption">
                </div>
                <div class="content">
                <div class="padding10">
                {include file='admin/layout/error.php'}
                {form_open('admin/vovaad/check')}
                    <h2>{$vova->id} - {$vova->title}</h2>
                    <p>{$vova->content|nl2br}</p>
                    <hr/>
                    <input type="hidden"  name="id" value="{$vova->id}">
                    <button class="button" type="submit" name="btOk" value="ok">Duyệt</button>
                    <button class="button" name="btNo" value="Không duyệt">Không duyệt</button>
                    <button class="button" name="btCancel" value="Bỏ Qua">Bỏ Qua</button>
                    <button class="button" data-reveal-id="editform" data-reveal-ajax="true">Thay đổi nội dung</button>
                {form_close()}
                </div>
                </div>
            </div>
        </div>
        <div id="editform" class="reveal-modal small" data-reveal>
            {form_open('admin/vovaad/checkedit')}
            <fieldset>
                <legend>Truyện Vôva</legend>
                {include file='admin/layout/error.php'}
                <lable>Tiêu đề</lable>
                <div class="input-control text" data-role="input-control">
                    <input type="text" placeholder="Tiêu đề truyện" name="title" value="{$vova->title}">
                </div>
                <lable>Nội dung</lable>
                <div class="input-control textarea" data-role="input-control">
                    <textarea name="content" style="height:300px;" placeholder="Nội dung truyện">{$vova->content}</textarea>
                </div>
                <lable>Nhân vật gồm</lable>
                <div class="input-control text" data-role="input-control">
                    <input type="text" placeholder="Tên các nhân vật" name="character" value="{$vova->character}">
                </div>
                <input type="hidden" name="id" value="{$vova->id}">
                <button class="button" type="submit" name="submit">Thay đổi và duyệt</button>
            </fieldset>
            {form_close()}
            <a class="close-reveal-modal">&#215;</a>
        </div>
        
    </div>
</div>
{include file='templates/admin/include_footer.php'}